diff options
| author | Michael Williamson <mike@zwobble.org> | 2023-09-23 16:13:12 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2023-09-23 16:13:12 +0100 |
| commit | 2047794b40b140675ef6f5ae7be83ae4ae603e02 (patch) | |
| tree | 112e58990d143dc78cc742e00a48fd3c0939fb4b /snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected | |
| parent | 22b8e0b0b04f1320b76804c34785b97081d378c7 (diff) | |
Add tests for Patio code gen for tuples
Diffstat (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected')
1 files changed, 44 insertions, 0 deletions
diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected new file mode 100644 index 00000000..d725544c --- /dev/null +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.patio.PatioCodeGenTupleCreateTests]/[method:canGenerateCodeForTupleCreate(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -0,0 +1,44 @@ +Compilation unit elements: + + +Locals: + * (val "tuplePointer__0" data-ptr) + * (val "tupleElement__2__0" int) + * (val "tupleElement__1__0" int) + * (val "tupleElement__0__0" int) + * (val "tuple__0" int) + +Instructions: + +( + (alloc-heap (local "tuplePointer__0") (struct (int int int))) + (local-store (local "tupleElement__2__0") (local "d")) + ( + memory-store + pointer=(local "tuplePointer__0") + layout=(struct (int int int)) + offset=(2) + value=(local "tupleElement__2__0") + ) + (local-store (local "tupleElement__1__0") (local "c")) + ( + memory-store + pointer=(local "tuplePointer__0") + layout=(struct (int int int)) + offset=(1) + value=(local "tupleElement__1__0") + ) + (local-store (local "tupleElement__0__0") (local "b")) + ( + memory-store + pointer=(local "tuplePointer__0") + layout=(struct (int int int)) + offset=(0) + value=(local "tupleElement__0__0") + ) + (data-ptr-to-int (local "tuple__0") (local "tuplePointer__0")) +) + +Temporary stack: + * tuple__0 + * a |
